<meta charset="utf-8"/>
<link rel="stylesheet" href="<?php echo css_url('calendrier' )?>" type="text/css" media="screen" />

<script type ="text/javascript" src="<?php echo js_url('jquery') ?>"></script>
<script type ="text/javascript" src="<?php echo js_url('javascriptFonctions') ?>"></script>
<script type ="text/javascript" src="<?php echo js_url('calendrier') ?>"></script>

<?php
	$date = date("d/m/Y");


echo '<h2>Proposer une action de communication</h2>
<form action="'.base_url().'index.php/ActionsDeCommunication/propositionAction" method="post">';

if(isset($flash)) echo $flash;
?>	<p>
		<label class="creation" for="TitreAction">Titre* : </label>
		<input id="TitreAction" <?php echo 'value="'.show($titre).'"'?> class="obligatoire" type="text" name="TitreAction" onBlur="verifChamp(this)" onFocus="blanc(this)"/>
	</p>
	<p>
		<label class="creation" for="ThemeAction">Thème : </label>
		<select id="ThemeAction" name="Theme" >
		<?php
			foreach($theme as $t)
				echo	'<option value="'.$t->getId().'">'.$t->getLibelle().'</option>';
		?>
		</select>
	</p>
	<p>
		<label class="creation" for="nbEtu">Nombre d'étudiants : </label>
		<input  <?php echo 'value="'.show($nbEtudiants).'"'?> id="nbEtu" type="number" name="NbEtudiants" min="1" max=<?php echo '"'.Parametre::findByLibelle("Nombre étudiants maximum").'"'?> onBlur="verifEtu(this,<?php echo Parametre::findByLibelle("Nombre étudiants maximum")?>)" onFocus="blanc(this)"/>
	</p>	
	<p>
		<label class="creation" for="date">Date de déroulement :</label>
		<?php
			echo '<input value="'.show($dateA).'" id="date" size=8 type="text" name="Date" placeholder="jj/mm/aaaa" class="calendrier"/>';
		?>
		<span id="erreurDate"></span>
	</p>		
	<p>
		<label class="creation" for="Commentaire">Commentaire* :</label>
		<textarea id="Commentaire" class="obligatoire" name="Commentaire"  rows="8" cols="45" onBlur="verifChamp(this)" onFocus="blanc(this)"><?php echo show($commentaire)?></textarea>
	</p>
	<p>
		<span id="erreur"></span>
	</p>
	<p>
		<?php echo'<div class="boutons"><p>
			<ul>
				<li><input class="Ligne2" type="submit" value="Proposer" name="ProposerADC" onClick="return verifFormulaireProposition()"/></li>
				<li><a href="javascript:history.go(-1)"><button type="button">Retour</button></a></li>
			</ul>	
		</p></div>'?>		
	</p>
</form>